home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / README.GLUT < prev    next >
Encoding:
Text File  |  1996-08-27  |  2.1 KB  |  72 lines

  1.  
  2.  
  3.           Instructions for Using GLUT with Mesa
  4.  
  5.  
  6. Mark Kilgard's GLUT (OpenGL Utility Toolkit) is a toolkit for quickly
  7. and easily writing OpenGL demos and applications.
  8.  
  9. GLUT has been used successfully with Mesa on many systems.  If you have
  10. problems contact Brian Paul if you think the problem is caused by Mesa.
  11. Contact Mark Kilgard, or post to the Mesa mailing list, if you think the
  12. problem is in GLUT.
  13.  
  14. At the time of Mesa's 2.0 release the latest version of GLUT is 3.1
  15.  
  16.  
  17. Here's how to get GLUT and build it using Mesa:
  18.  
  19. 1. Use your WWW browser to open the URL:
  20.     http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html
  21.  
  22.    Under "About the GLUT source code distribution" is a link to the
  23.    distribution file glut-3.1.tar.Z  Click on it to download GLUT.
  24.  
  25. 2. In your shell, move glut-3.1.tar.Z into the Mesa-2.x directory and
  26.    unpack it with:
  27.     zcat glut.3.1.tar.Z | tar xvf -
  28.  
  29. 3. cd to the GLUT directory:
  30.     cd glut-3.1
  31.  
  32. 4. Make a backup copy of Glut.cf:
  33.     cp Glut.cf Glut.cf.orig
  34.  
  35. 5. Make sure GLut.cf is writable since we have to edit it:
  36.     chmod +w Glut.cf
  37.  
  38. 6. If you're using a Sun with Solaris then define the following two
  39.    environment variables from your shell:
  40.  
  41.     OGLHOME    to where you've installed Mesa (like /usr/home/brian/Mesa)
  42.     OPENWINHOME to something like /usr/openwin
  43.  
  44. 7. Edit Glut.cf as follows.  Note that there are two places where these
  45.    changes may have to be made depending on whether you're using a Sun
  46.    or not.
  47.  
  48.     change:        EXTRA_INCLUDES = -I$(TOP)
  49.     to look like:    EXTRA_INCLUDES = -I$(TOP)/../include -I$(TOP)
  50.  
  51.     change:        OPENGL = -lGL
  52.     to look like:    OPENGL = $(TOP)/../lib/libMesaGL.a
  53.  
  54.     change:        GLU = -lGLU
  55.     to look like:    GLU = $(TOP)/../lib/libMesaGLU.a
  56.  
  57.    NOTE: if you made shared Mesa libraries, the suffixes might be .so instead
  58.    of .a
  59.  
  60. 8. Run the mkmkfiles.imake script:
  61.     mkmkfiles.imake
  62.  
  63. 9. Run make:
  64.     make
  65.  
  66. 10. If all goes well there should be many executables in the progs/
  67.     directories for you to try out.
  68.  
  69. 11. You may want to copy the lib/glut/libglut.a file to wherever you have
  70.     your Mesa libraries (libMesaGL.a, libMesaGLU.a, etc) if you're going to
  71.     use it for your own work.
  72.